﻿using System;
using System.Collections.Generic;
using System.Data.Linq;
using System.Linq;
using System.Text;

namespace Policlinica
{
    public class Ticket : BusinessObjectBase
    {
        private DateTime _ticketDateTime;
        private string _payment;
        private Doctor _Doctor;
        private Patient _Patient;
        private MedService _MedService;

       

        public Ticket()
        {
            this._Doctor = default(Doctor);
            this._Patient = default(Patient);
            this._MedService = default(MedService);
        }

        public Ticket(int id, bool isDeleted, DateTime ticDateTime, string ticPayment, Doctor doctor, Patient patient, 
            MedService medService) : base(id, isDeleted)
        {
            _ticketDateTime = ticDateTime;
            _payment = ticPayment;
            _Doctor = doctor;
            _Patient = patient;
            _MedService = medService;
        }

        public Ticket(DateTime ticDateTime, string ticPayment, Doctor doctor, Patient patient, MedService medService)
        {
            _ticketDateTime = ticDateTime;
            _payment = ticPayment;
            _Doctor = doctor;
            _Patient = patient;
            _MedService = medService;
        }

        public System.DateTime TicketDateTime
        {
            get
            {
                return this._ticketDateTime;
            }
            set
            {
                if ((this._ticketDateTime != value))
                {
                    this._ticketDateTime = value;
                }
            }
        }

        public string Payment
        {
            get
            {
                return this._payment;
            }
            set
            {
                if ((this._payment != value))
                {
                    this._payment = value;
                }
            }
        }

        public Doctor Doctor
        {
            get
            {
                return this._Doctor;
            }
            set
            {
                Doctor previousValue = this._Doctor;
                if (previousValue != value)
                {
                    this._Doctor = value;
                }
            }
        }

        public Patient Patient
        {
            get
            {
                return this._Patient;
            }
            set
            {
                Patient previousValue = this._Patient;
                if (previousValue != value)
                {
                    this._Patient = value;
                }
            }
        }

        public MedService MedService
        {
            get
            {
                return this._MedService;
            }
            set
            {
                MedService previousValue = this._MedService;
                if (previousValue != value)
                {
                    this._MedService = value;
                }
            }
        }

       
    }
}
